﻿// See https://aka.ms/new-console-template for more information
using QskjGetUrlDownUpAlarm.Service;

Console.WriteLine("Hello, World!");

#region 视图库文件地址查询
ParameterizedThreadStart threadStart1 = new((obj) =>
{
    Console.WriteLine(DateTime.Now + "__当天视图库文件地址查询执行开始");
    //VideoImageUrl.GetInfo();//视图库文件地址查询
    while (true)
    {
        VideoImageUrl.GetInfo(0);//视图库文件地址查询
        Thread.Sleep(100);
    }
});
Thread thread1 = new Thread(threadStart1);
thread1.Start();
ParameterizedThreadStart threadStart2 = new((obj) =>
{
    Console.WriteLine(DateTime.Now + "__昨天视图库文件地址查询执行开始");
    //VideoImageUrl.GetInfo();//视图库文件地址查询
    while (true)
    {
        VideoImageUrl.GetInfo(-1);//视图库文件地址查询
        Thread.Sleep(500);
    }
});
Thread thread2 = new Thread(threadStart2);
thread2.Start();
ParameterizedThreadStart threadStart3 = new((obj) =>
{
    Console.WriteLine(DateTime.Now + "__前天视图库文件地址查询执行开始");
    //VideoImageUrl.GetInfo();//视图库文件地址查询
    while (true)
    {
        VideoImageUrl.GetInfo(-2);//视图库文件地址查询
        Thread.Sleep(500);
    }
});
Thread thread3 = new Thread(threadStart3);
thread3.Start();
#endregion
while (true)
{
    Thread.Sleep(1000 * 60);
}